# encoding: utf-8
# module PyQt5.QtNetwork
# from /usr/lib/python3/dist-packages/PyQt5/QtNetwork.cpython-35m-x86_64-linux-gnu.so
# by generator 1.146
# no doc

# imports
import PyQt5.QtCore as __PyQt5_QtCore


from .QAbstractSocket import QAbstractSocket

class QUdpSocket(QAbstractSocket):
    """ QUdpSocket(QObject parent=None) """
    def hasPendingDatagrams(self): # real signature unknown; restored from __doc__
        """ QUdpSocket.hasPendingDatagrams() -> bool """
        return False

    def joinMulticastGroup(self, QHostAddress, QNetworkInterface=None): # real signature unknown; restored from __doc__ with multiple overloads
        """
        QUdpSocket.joinMulticastGroup(QHostAddress) -> bool
        QUdpSocket.joinMulticastGroup(QHostAddress, QNetworkInterface) -> bool
        """
        return False

    def leaveMulticastGroup(self, QHostAddress, QNetworkInterface=None): # real signature unknown; restored from __doc__ with multiple overloads
        """
        QUdpSocket.leaveMulticastGroup(QHostAddress) -> bool
        QUdpSocket.leaveMulticastGroup(QHostAddress, QNetworkInterface) -> bool
        """
        return False

    def multicastInterface(self): # real signature unknown; restored from __doc__
        """ QUdpSocket.multicastInterface() -> QNetworkInterface """
        return QNetworkInterface

    def pendingDatagramSize(self): # real signature unknown; restored from __doc__
        """ QUdpSocket.pendingDatagramSize() -> int """
        return 0

    def readDatagram(self, p_int): # real signature unknown; restored from __doc__
        """ QUdpSocket.readDatagram(int) -> (bytes, QHostAddress, int) """
        pass

    def setMulticastInterface(self, QNetworkInterface): # real signature unknown; restored from __doc__
        """ QUdpSocket.setMulticastInterface(QNetworkInterface) """
        pass

    def writeDatagram(self, *__args): # real signature unknown; restored from __doc__ with multiple overloads
        """
        QUdpSocket.writeDatagram(str, QHostAddress, int) -> int
        QUdpSocket.writeDatagram(QByteArray, QHostAddress, int) -> int
        """
        return 0

    def __init__(self, QObject_parent=None): # real signature unknown; restored from __doc__
        pass


